﻿@model QLBV.Models.News

@{
    ViewBag.Title = "Sửa Tin Tức";
    Layout = "~/Views/Shared/_Layout_Manager.cshtml";
}

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
   
        

         <div class="td">
           <label>Tiêu đề :</label>
            @Html.EditorFor(model => model.Title)
            @Html.ValidationMessageFor(model => model.Title)
        </div>
         <div class="td">
          <label> Hình Ảnh :</label>
            @Html.TextBoxFor(model => model.Images, new { type = "file" })
        </div>
       <div class="td">
          <label> Nội Dung :</label>
          <br />
          <br />
           @Html.TextAreaFor(model => model.Content, new { @id = "ckeContent" })
                    <script type="text/javascript">
                        CKEDITOR.replace("ckeContent");
                    </script>
            @Html.ValidationMessageFor(model => model.Content)
        </div>
        <div class="td">
           <label>Trạng thái:</label>
           @Html.RadioButtonFor(model => model.Status, "True")  Mở
           @Html.RadioButtonFor(model => model.Status, "False")  Đóng
          </div>

        <div class="buton">
            <input id="ok" type="submit" value="Lưu" />
            <input id ="no" type="reset" value="Bỏ Qua" />
        </div>
  
}

<div>
    @Html.ActionLink("Back to List", "DSTin")
</div>
